import request from '@/utils/request'

// 获取课程教学树
export function getcourseTeachTree(courseSchedulingId) {
  return request({
    url: `/school/teacher/courseTeaching/courseIndexInfo/${courseSchedulingId}`,
    method: 'get',
  })
}
// 获取环节详细信息（学生）
export function getTeachstudentList(courseSchedulingId,indexId) {
  return request({
    url: `/school/teacher/courseTeaching/studentStudyList/${courseSchedulingId}/${indexId}`,
    method: 'get',
  })
}
// 获取环节详细信息（小组）
export function getTeachgroupList(courseSchedulingId,indexId) {
  return request({
    url: `/school/teacher/courseTeaching/studentStudyListByGroup/${courseSchedulingId}/${indexId}`,
    method: 'get',
  })
}
// 数据概览
export function getdataOverview(courseSchedulingId,indexId) {
  return request({
    url: `/school/teacher/courseTeaching/dataOverview/${courseSchedulingId}/${indexId}`,
    method: 'get',
  })
}
// 获取导出考核课程树
export function exportExamTree(courseId,examType) {
  return request({
    url: `/exam/teacher/manager/export/selectIndexIds/${courseId}/${examType}`,
    method: 'get',
  })
}
// 导出答卷
export function exportStuExamPaper(data) {
  return request({
    url: `/exam/teacher/manager/exportStuExamPaper`,
    method: 'post',
    data
  })
}
// 获取导出答卷任务进度
export function getExportProgress(jobId) {
  return request({
    url: `/exam/teacher/manager/export/status/${jobId}`,
    method: 'get',
  })
}
// 导出学习成果
export function exportLearningResult(data) {
  return request({
    url: `/school/teacher/teachingPage/exportLearningResult`,
    method: 'post',
    data
  })
}
// 获取导出答卷任务进度
export function getExportLearningResultProgress(jobId) {
  return request({
    url: `/school/teacher/teachingPage/exportLearningResult/status/${jobId}`,
    method: 'get',
  })
}
